package asteroids.model.programs.types;

import asteroids.model.GameObject;
import asteroids.model.Ship;
import asteroids.model.programs.expressions.EntityLiteral;
import asteroids.model.programs.expressions.ExprEntityEvaluator;
import asteroids.model.programs.expressions.Expression;

public class EntityType extends Type {

	public EntityType() {
		
	}

	@Override
	public Expression getLiteral(Expression e, Ship s) {
		ExprEntityEvaluator eee = new ExprEntityEvaluator(s);
		GameObject go = e.accept(eee);
		return new EntityLiteral(e.getLine(), e.getColumn(), go);
	}

}
